
<script type="text/javascript">
    var id = null;
    $(function () {
        $(".blackbtn").click(function () {
            if(id == null){
                id = $(this).data("id");
                $(this).addClass("on");
            }else{
                if($(this).data("id") !== id){
                    $(".blacklist .search-list li").removeClass("on");
                    id = $(this).data("id");
                    $(this).addClass("on");
                }else{
                    $(this).addClass("on");
                }
            }
        });
    });
    function removeClass() {
        $(".blacklist .search-list .on").removeClass("on");
    }
</script>
<#list userListEs as userEs>
    <li  class="blackbtn" data-id="${userEs.id}" data-logo="" data-lv="${userEs.level}" data-name="${userEs.nickname}">
        <img src="${userEs.headUrl}" height="16" width="16">
        <span class="name">${userEs.nickname}</span>
        <span class="lv">lv.${userEs.level}</span>
        <i class="i-selected"></i>
    </li>
</#list>
